package com.hup.sokoban.config;

import com.hup.utils.commons.start.AppIcon;
import com.hup.utils.commons.start.SimpleExitHandler;
import com.hup.utils.swing.ImageCacher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author hugan
 * @date 2020/4/29
 */
@Configuration
public class BeansConfiguration {

    @Bean
    public SimpleExitHandler exitHandler() {
        return new SimpleExitHandler();
    }

    @Bean
    public AppIcon appIcon() {
        return new AppIcon("/img/common/app_tray.gif");
    }

    @Bean
    public ImageCacher imageCacher() {
        return new ImageCacher();
    }

}
